package be.kul.osgi.ds.role1;

import be.kul.osgi.ds.irole.ITask;

public class Task implements ITask {

	private long start;
	private long duration;
	private long due;

	private boolean done;
	
	private String ID;
	
	private double x;
	private double y;
	
	public Task(String ID, long duration, long due, double x, double y){
		//this.start
		this.duration  =duration;
		this.due= due;
		this.x = x;
		this.y = y;
		this.ID =ID;
		this.setDone(false);
	}
	
	public String getID() {
		return ID;
	}

	public long getStart() {
		return start;
	}
	public void setStart(long start) {
		this.start = start;
	}
	
	
	public long getDuration() {
		return duration;
	}
	public void setDuration(long duration) {
		this.duration = duration;
	}
	
	
	public long getDue() {
		return due;
	}
	public void setDue(long due) {
		this.due = due;
	}
	

	public double getX() {
		return x;
	}

	public double getY() {
		return y;
	}
	
	@Override
	public long getTime() {
		// TODO Auto-generated method stub
		return duration;
	}

	public boolean isDone() {
		return done;
	}

	public void setDone(boolean done) {
		this.done = done;
	}

}
